package com.deryun.tyl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.deryun.tyl.bean.MutiPic;
import com.deryun.tyl.dao.impl.MutiPicDaoImpl;

@Service("mutiPicServiceImpl")
public class MutiPicServiceImpl {
	
	
	@Resource(name="mutiPicDaoImpl")
	private MutiPicDaoImpl mutiPicDaoImpl;
	
	public List<MutiPic> getPicByType(int type){
		return mutiPicDaoImpl.getPicByType(type);
	}
	

	public int addPic(MutiPic mutiPic){
		return mutiPicDaoImpl.addPic(mutiPic);
	}
	

	public int delPic(int id){
		return mutiPicDaoImpl.delPic(id);
	}
}
